package org.dromara.system.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.system.domain.SysSlideshow;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 轮播图视图对象 sys_slideshow
 *
 * @author wenrui Su
 * @date 2024-03-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysSlideshow.class)
public class SysSlideshowVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 展示页面
     */
    @ExcelProperty(value = "展示页面")
    private String page;

    /**
     * 图片ID
     */
    @ExcelProperty(value = "图片ID")
    private Long pictureId;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_status")
    private String state;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private String url;
}
